{ include file='../Common/head_index.html'}
<body>
    <nav class="navbar navbar-default" style="background-color: #337ab7;margin-bottom: 0px;border: 0px;border-radius: 0px;">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#" style="color: white">飞鱼2018</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" style="margin-left: 280px;">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="{$smarty.const.__ROOT__}" style="color: white">前台首页</a></li>
                    <!--<li>-->
                        <!--<a href="#" style="color: white">-->
                            <!--<span class="glyphicon glyphicon-user"></span>-->
                        <!--</a>-->
                    <!--</li>-->
                    <li><a href="#" style="color: white">[{$smarty.session.username}]</a></li>
                    <li><a href="{$smarty.const.__APP__}?c=Login&m=out" style="color: white">[退出]</a></li>
                </ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <div class="col-sm-3 col-md-2 col-xg-2" style="height: 100vh;background-color: #1a2226;margin-top: -52px;z-index: -999;padding: 0px;">
       <div class="nav-top">
           <ul id="left-navbar" class="left-navbar-box">
               {foreach from="$parentMenu" item="p"}
               <li class="left-navbar-box-menu">
                   <div href="#">
                       <span class="glyphicon glyphicon-lock navbar-icon-left"></span>{$p.title}
                       <span class="glyphicon glyphicon-triangle-right navbar-icon-right"></span>
                   </div>
                   <ul class="left-navbar">
                       {foreach from="$childMenu" item="c"}
                       {if $p.id eq $c.parent_id}
                       <li data-href="{$smarty.const.__APP__}?c={$c.control}&m={$c.method}" class="left-navbar-li">{$c.title}</li>
                       {/if}
                       {/foreach}
                   </ul>
               </li>
               {/foreach}
               <!--{if $smarty.session.is_admin}-->
                   <!--<li class="left-navbar-box-menu">-->
                       <!--<div href="#">-->
                           <!--<span class="glyphicon glyphicon-lock navbar-icon-left"></span>权限-->
                           <!--<span class="glyphicon glyphicon-triangle-right navbar-icon-right"></span>-->
                       <!--</div>-->

                       <!--<ul class="left-navbar">-->
                           <!--<li data-href="{$smarty.const.__APP__}?c=Authority&m=userList" class="left-navbar-li">用户管理</li>-->
                           <!--<li data-href="{$smarty.const.__APP__}?c=Authority&m=roleList" class="left-navbar-li">角色管理</li>-->
                           <!--<li data-href="{$smarty.const.__APP__}?c=Authority&m=accessList" class="left-navbar-li">权限管理</li>-->
                       <!--</ul>-->
                   <!--</li>-->
               <!--{/if}-->
               <!--<li class="left-navbar-box-menu">-->
                   <!--<div href="#">-->
                       <!--<span class="glyphicon glyphicon-menu-hamburger navbar-icon-left"></span>菜单-->
                       <!--<span class="glyphicon glyphicon-triangle-right navbar-icon-right"></span>-->
                   <!--</div>-->
                   <!--<ul class="left-navbar">-->
                       <!--<li data-href="{$smarty.const.__APP__}?c=Menu&m=add" class="left-navbar-li">添加菜单</li>-->
                       <!--<li data-href="{$smarty.const.__APP__}?c=Menu" class="left-navbar-li">菜单管理</li>-->
                   <!--</ul>-->
               <!--</li>-->
               <!--<li class="left-navbar-box-menu">-->
                   <!--<div href="#">-->
                       <!--<span class="glyphicon glyphicon-list navbar-icon-left"></span>栏目-->
                       <!--<span class="glyphicon glyphicon-triangle-right navbar-icon-right"></span>-->
                   <!--</div>-->
                   <!--<ul class="left-navbar">-->
                       <!--<li data-href="{$smarty.const.__APP__}?c=Category&m=add" class="left-navbar-li">添加栏目</li>-->
                       <!--<li data-href="{$smarty.const.__APP__}?c=Category" class="left-navbar-li">栏目管理</li>-->
                   <!--</ul>-->
               <!--</li>-->
               <!--<li class="left-navbar-box-menu">-->
                   <!--<div href="#">-->
                       <!--<span class="glyphicon glyphicon-list-alt navbar-icon-left"></span>文章-->
                       <!--<span class="glyphicon glyphicon-triangle-right navbar-icon-right"></span>-->
                   <!--</div>-->

                   <!--<ul class="left-navbar">-->
                       <!--<li data-href="{$smarty.const.__APP__}?c=Article&m=add" class="left-navbar-li">添加文章</li>-->
                       <!--<li data-href="{$smarty.const.__APP__}?c=Article&m=index" class="left-navbar-li">文章管理</li>-->
                   <!--</ul>-->
               <!--</li>-->

           </ul>
       </div>
    </div>
    <div class="col-sm-9 col-md-10 col-xg-10" style="height: 100vh;margin-top: -52px;z-index: -999;">
        <iframe src="{$smarty.const.__TPL__}/{$smarty.const.CONTROLLER}/welcome.html" class="right-frame" id="right-frame"></iframe>
    </div>

</body>
<script src="{ $smarty.const.__JS__ }/admin-index.js"></script>
</html>